QuaternaryDictionary.Add(TKey, TValue) method¶
Defined in
Type: QuaternaryDictionaryReactiveList.Collections
Assembly: ReactiveList.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
public void Add(TKey key, TValue value) -
public void Add(KeyValuePair<TKey, TValue> item)
1. Overload¶
public void Add(TKey key, TValue value)
View source (opens in a new tab)
Summary: Adds the specified key and value to the collection.
Parameters
| Name | Type | Description |
|---|---|---|
key | TKey | The key of the element to add. |
value | TValue | The value of the element to add. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException (opens in a new tab) | Thrown if the key already exists. |
2. Overload¶
public void Add(KeyValuePair<TKey, TValue> item)
View source (opens in a new tab)
Summary: Adds the specified key/value pair to the collection.
Parameters
| Name | Type | Description |
|---|---|---|
item | KeyValuePair | The key/value pair to add. |